Skip to main content

selectedObject

Type​

function

Summary​

Returns the name of the selected object or objects.

Syntax​

the selectedObject
selectedObject()

Description​

Use the selectedObject function to perform an action on all the selected objects.

Examples​

the selectedObject
set the lockText of the selectedObject to true
repeat with x = 1 to the number of lines of the selectedObjects

Value​

NameTypeDescription

return

The selectedObject function returns a list with the long ID property of each selected object.

command: group

control structure: function

function: target

glossary: property, return, object

property: ID, selectGroupedControls, selected

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?